const Mock = require('mockjs')

const getClassData = function () {
  const data = Mock.mock({
    'classData|10': [{
      'key|+1': 1,
      'machineNumber|+1': 1,
      'light|1-10.2': 0.1,
      'temperature|1-10.2': 0.1,
      'humidity|1-10.2': 0.1,
      'smoke|1-10.2': 0.1,
    }]
  })
  return data
}

exports.getClassData = getClassData

// 单元测试
// const result = getClassData();
// console.log(result);